package com.cloudlead.commonData.query;

import static com.mysema.query.types.PathMetadataFactory.*;
import com.cloudlead.commonData.entity.ETbLadingBill;


import com.mysema.query.types.path.*;

import com.mysema.query.types.PathMetadata;
import javax.annotation.Generated;
import com.mysema.query.types.Path;

import com.mysema.query.sql.ColumnMetadata;
import java.sql.Types;

import com.mysema.query.sql.*;

import com.cloudlead.common.lang.annotation.Label;


/**
 * QTbLadingBill is a Querydsl query type for ETbLadingBill
 */
@Label("提单表查询")
@Generated("com.cloudlead.utils.persistence.codegen.serializer.SimpleMetaDataSerializer")
public class QTbLadingBill extends RelationalPathBase<ETbLadingBill> {

    private static final long serialVersionUID = 1878142673;

    public static final QTbLadingBill tbLadingBill = new QTbLadingBill("tb_lading_bill");

    public class PrimaryKeys {

        public final PrimaryKey<ETbLadingBill> primary = createPrimaryKey(id);

    }

    public class ForeignKeys {

        public final ForeignKey<com.cloudlead.commonData.entity.ETbBookingSpaceReceipt> tbLadingBillTbBookingspaceReceipt1Fk = createForeignKey(tbBookingspaceReceiptId, "id");

    }

    public final StringPath comments = createString("comments");

    public final DateTimePath<org.joda.time.DateTime> date = createDateTime("date", org.joda.time.DateTime.class);

    public final StringPath flag = createString("flag");

    public final StringPath id = createString("id");

    public final StringPath image = createString("image");

    public final StringPath tbBookingspaceReceiptId = createString("tbBookingspaceReceiptId");

    public final PrimaryKeys pk = new PrimaryKeys();

    public final ForeignKeys fk = new ForeignKeys();

    public QTbLadingBill(String variable) {
        super(ETbLadingBill.class, forVariable(variable), "null", "tb_lading_bill");
        addMetadata();
    }

    public QTbLadingBill(String variable, String schema, String table) {
        super(ETbLadingBill.class, forVariable(variable), schema, table);
        addMetadata();
    }

    public QTbLadingBill(Path<? extends ETbLadingBill> path) {
        super(path.getType(), path.getMetadata(), "null", "tb_lading_bill");
        addMetadata();
    }

    public QTbLadingBill(PathMetadata<?> metadata) {
        super(ETbLadingBill.class, metadata, "null", "tb_lading_bill");
        addMetadata();
    }

    public void addMetadata() {
        addMetadata(comments, ColumnMetadata.named("comments").withIndex(4).ofType(Types.VARCHAR).withSize(256));
        addMetadata(date, ColumnMetadata.named("date").withIndex(3).ofType(Types.TIMESTAMP).withSize(19));
        addMetadata(flag, ColumnMetadata.named("flag").withIndex(6).ofType(Types.VARCHAR).withSize(8));
        addMetadata(id, ColumnMetadata.named("id").withIndex(1).ofType(Types.CHAR).withSize(24).notNull());
        addMetadata(image, ColumnMetadata.named("image").withIndex(2).ofType(Types.VARCHAR).withSize(45));
        addMetadata(tbBookingspaceReceiptId, ColumnMetadata.named("tb_bookingspace_receipt_id").withIndex(5).ofType(Types.CHAR).withSize(24).notNull());
    }

}

